<?php
class Default_Model_Orders extends Zend_Db_Table_Abstract{
    protected $_name='orders';
    protected $_primary='orders_id';
    protected $_db;
    
    public function __construct()
    {
        $this->_db=Zend_Registry::get('db');
    }
    
    public function addOrders($data)
    {
        $this->_db->insert('orders',$data);
        $orders_id=$this->_db->lastInsertId('orders','orders_id');
        return $orders_id;
    }
}

?>